package com.ruoyi.third.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.third.mapper.ThirdMessageMapper;
import com.ruoyi.third.domain.ThirdMessage;
import com.ruoyi.third.service.IThirdMessageService;

/**
 * 接入消息Service业务层处理
 * 
 * @author yepanpan
 * @date 2025-02-06
 */
@Service
public class ThirdMessageServiceImpl implements IThirdMessageService 
{
    private static final Logger log = LoggerFactory.getLogger(ThirdMessageServiceImpl.class);

    @Autowired
    private ThirdMessageMapper thirdMessageMapper;

    /**
     * 查询接入消息
     * 
     * @param id 接入消息主键
     * @return 接入消息
     */
    @Override
    public ThirdMessage selectThirdMessageById(Long id)
    {
        return thirdMessageMapper.selectThirdMessageById(id);
    }

    /**
     * 查询接入消息列表
     * 
     * @param thirdMessage 接入消息
     * @return 接入消息
     */
    @Override
    public List<ThirdMessage> selectThirdMessageList(ThirdMessage thirdMessage)
    {
        return thirdMessageMapper.selectThirdMessageList(thirdMessage);
    }

    /**
     * 新增接入消息
     * 
     * @param thirdMessage 接入消息
     * @return 结果
     */
    @Override
    public int insertThirdMessage(ThirdMessage thirdMessage)
    {
        return thirdMessageMapper.insertThirdMessage(thirdMessage);
    }

    /**
     * 修改接入消息
     * 
     * @param thirdMessage 接入消息
     * @return 结果
     */
    @Override
    public int updateThirdMessage(ThirdMessage thirdMessage)
    {
        return thirdMessageMapper.updateThirdMessage(thirdMessage);
    }

    /**
     * 批量删除接入消息
     * 
     * @param ids 需要删除的接入消息主键
     * @return 结果
     */
    @Override
    public int deleteThirdMessageByIds(Long[] ids)
    {
        return thirdMessageMapper.deleteThirdMessageByIds(ids);
    }

    /**
     * 删除接入消息信息
     * 
     * @param id 接入消息主键
     * @return 结果
     */
    @Override
    public int deleteThirdMessageById(Long id)
    {
        return thirdMessageMapper.deleteThirdMessageById(id);
    }


}
